<div class="dausaches view">
<h2><?php  __('Dausach');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Linhvuc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($dausach['Linhvuc']['id'], array('controller' => 'linhvucs', 'action' => 'view', $dausach['Linhvuc']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Ngonnguk'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($dausach['Ngonnguk']['id'], array('controller' => 'ngonnguks', 'action' => 'view', $dausach['Ngonnguk']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Nhaxuatban'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($dausach['Nhaxuatban']['id'], array('controller' => 'nhaxuatbans', 'action' => 'view', $dausach['Nhaxuatban']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Hinhanh'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['hinhanh']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Mads'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['mads']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tensach'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['tensach']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Sotrang'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['sotrang']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Tacgia'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['tacgia']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Namxb'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $dausach['Dausach']['namxb']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Thực hiện'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Sửa Đầu sách', true), array('action' => 'edit', $dausach['Dausach']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Xóa Ðầu sách', true), array('action' => 'delete', $dausach['Dausach']['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $dausach['Dausach']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('DS Ðầu sách', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Ðầu sách mới', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Lĩnh vực', true), array('controller' => 'linhvucs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Lĩnh vực mới', true), array('controller' => 'linhvucs', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Ngôn ngữ', true), array('controller' => 'ngonnguks', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Ngôn ngữ mới', true), array('controller' => 'ngonnguks', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS NXB', true), array('controller' => 'nhaxuatbans', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('NXB mới', true), array('controller' => 'nhaxuatbans', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Chi tiết nhập', true), array('controller' => 'chitietnhaps', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Chi tiết nhập mới', true), array('controller' => 'chitietnhaps', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Cuốn sách', true), array('controller' => 'cuonsaches', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Cuốn sách mới', true), array('controller' => 'cuonsaches', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('DS Tác giả chủ biên', true), array('controller' => 'tacgiachubiens', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('Tác giả chủ biên mới', true), array('controller' => 'tacgiachubiens', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Liên kết Chi tiết nhập');?></h3>
	<?php if (!empty($dausach['Chitietnhap'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Hoadonnhap Id'); ?></th>
		<th><?php __('Dausach Id'); ?></th>
		<th><?php __('Soluong'); ?></th>
		<th><?php __('Dongia'); ?></th>
		<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($dausach['Chitietnhap'] as $chitietnhap):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $chitietnhap['id'];?></td>
			<td><?php echo $chitietnhap['hoadonnhap_id'];?></td>
			<td><?php echo $chitietnhap['dausach_id'];?></td>
			<td><?php echo $chitietnhap['soluong'];?></td>
			<td><?php echo $chitietnhap['dongia'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'chitietnhaps', 'action' => 'view', $chitietnhap['id'])); ?>
				<?php echo $this->Html->link(__('S?a', true), array('controller' => 'chitietnhaps', 'action' => 'edit', $chitietnhap['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'chitietnhaps', 'action' => 'delete', $chitietnhap['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $chitietnhap['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Chi tiết nhập mới', true), array('controller' => 'chitietnhaps', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Cuốn sách');?></h3>
	<?php if (!empty($dausach['Cuonsach'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Dausach Id'); ?></th>
		<th><?php __('Macs'); ?></th>
		<th><?php __('Dongiacs'); ?></th>
		<th><?php __('Ghichu'); ?></th>
		<th class="actions"><?php __('Thực hiện');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($dausach['Cuonsach'] as $cuonsach):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $cuonsach['id'];?></td>
			<td><?php echo $cuonsach['dausach_id'];?></td>
			<td><?php echo $cuonsach['macs'];?></td>
			<td><?php echo $cuonsach['dongiacs'];?></td>
			<td><?php echo $cuonsach['ghichu'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'cuonsaches', 'action' => 'view', $cuonsach['id'])); ?>
				<?php echo $this->Html->link(__('S?a', true), array('controller' => 'cuonsaches', 'action' => 'edit', $cuonsach['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'cuonsaches', 'action' => 'delete', $cuonsach['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $cuonsach['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Cuốn sách mới', true), array('controller' => 'cuonsaches', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Liên kết Tác giả chủ biên');?></h3>
	<?php if (!empty($dausach['Tacgiachubien'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Dausach Id'); ?></th>
		<th><?php __('Tacgia Id'); ?></th>
		<th><?php __('Chubien'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($dausach['Tacgiachubien'] as $tacgiachubien):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $tacgiachubien['id'];?></td>
			<td><?php echo $tacgiachubien['dausach_id'];?></td>
			<td><?php echo $tacgiachubien['tacgia_id'];?></td>
			<td><?php echo $tacgiachubien['chubien'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('Xem', true), array('controller' => 'tacgiachubiens', 'action' => 'view', $tacgiachubien['id'])); ?>
				<?php echo $this->Html->link(__('Sửa', true), array('controller' => 'tacgiachubiens', 'action' => 'edit', $tacgiachubien['id'])); ?>
				<?php echo $this->Html->link(__('Xóa', true), array('controller' => 'tacgiachubiens', 'action' => 'delete', $tacgiachubien['id']), null, sprintf(__('Bạn có muốn xóa # %s?', true), $tacgiachubien['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('Tác giả chủ biên mới', true), array('controller' => 'tacgiachubiens', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
